<template>
  <div>
    <ul>
      <li v-for="(item, index) in objArr" :key="index">
        姓名:{{item.name}}
        年龄:{{item.age}}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Homework2App",

  data() {
    return {
      arr: [10, 20, 30, 40, 50],
      objArr:[
        {name:'陶表力',age:25},
        {name:'邓思瑶',age:18},
        {name:'饶成辉',age:23},
        {name:'彭思琴',age:18},

      ]
    };
  },

  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
</style>